print(x) |
break |
x = 10 |
if x == 100: |
x = x + 1 |
while True: |
    print(x) |
        break |
x = 10 |
    if x == 100: |
    x = x + 1 |
while True: |
1 | x = 10 |
2 | while True: |
3 |     print(x) |
4 |     x = x + 1 |
5 |     if x == 100: |
6 |         break |
for x in range(10,101): |
print(x) |
for x in range(10,101): |
    print(x) |
1 | for x in range(10,101): |
2 |     print(x) |
break |
print("Enter something") |
while True: |
print("The end") |
i = input() |
if i != "": |
        break |
    print("Enter something") |
while True: |
print("The end") |
    i = input() |
    if i != "": |
1 | while True: |
2 |     print("Enter something") |
3 |     i = input() |
4 |     if i != "": |
5 |         break |
6 | print("The end") |
while True: |
print("Enter the word 'Friday'") |
break |
if i != "Friday": |
i = input() |
while True: |
    print("Enter the word 'Friday'") |
        break |
    if i != "Friday": |
    i = input() |
1 | while True: |
2 |     print("Enter the word 'Friday'") |
3 |     i = input() |
4 |     if i != "Friday": |
5 |         break |
print("Enter a valid number") |
n = input() |
break |
while True: |
if n.isdigit() == True: |
    print("Enter a valid number") |
    n = input() |
        break |
while True: |
    if n.isdigit() == True: |
1 | while True: |
2 |     print("Enter a valid number") |
3 |     n = input() |
4 |     if n.isdigit() == True: |
5 |         break |
n1 = int(n1) |
print("Invalid numbers") |
print("Enter a valid number") |
print("Enter another valid number") |
if n.isdigit() == True and n2.isdigit() == True: |
n2 = int(n2) |
print(n1 + n2) |
while True: |
n1 = input() |
break |
n2 = input() |
n1 = int(n1) |
    print("Invalid numbers") |
    print("Enter a valid number") |
    print("Enter another valid number") |
    if n.isdigit() == True and n2.isdigit() == True: |
n2 = int(n2) |
print(n1 + n2) |
while True: |
    n1 = input() |
        break |
    n2 = input() |
1 | while True: |
2 |     print("Enter a valid number") |
3 |     n1 = input() |
4 |     print("Enter another valid number") |
5 |     n2 = input() |
6 |     if n.isdigit() == True and n2.isdigit() == True: |
7 |         break |
8 |     print("Invalid numbers") |
9 | n1 = int(n1) |
10 | n2 = int(n2) |
11 | print(n1 + n2) |
while True: |
print("That is not correct, try again") |
exit() |
tries = 0 |
tries = tries + 1 |
userAttempt = input() |
print("You have had too many tries") |
if userAttempt == "password": |
print("Enter a password") |
else: |
break |
if tries == 3: |
print("You guessed the password correctly!") |
while True: |
    print("That is not correct, try again") |
        exit() |
tries = 0 |
    tries = tries + 1 |
  userAttempt = input() |
        print("You have had too many tries") |
  if userAttempt == "password": |
  print("Enter a password") |
  else: |
    break |
    if tries == 3: |
print("You guessed the password correctly!") |
1 | tries = 0 |
2 | while True: |
3 |   print("Enter a password") |
4 |   userAttempt = input() |
5 |   if userAttempt == "password": |
6 |     break |
7 |   else: |
8 |     print("That is not correct, try again") |
9 |     tries = tries + 1 |
10 |     if tries == 3: |
11 |         print("You have had too many tries") |
12 |         exit() |
13 | print("You guessed the password correctly!") |
else: |
print("Enter your username and password") |
break |
print("3)Forgot Password") |
print("1)Sign Up") |
menuInput = input("Pick a menu option") |
break |
print("This is not an option") |
break |
while True: |
elif menuInput == "2": |
print("2)Sign In") |
if menuInput == "1": |
print("You are into the system") |
print("Pick an option:") |
print("An email has been sent to you allow you to reset your password") |
elif menuInput == "3": |
print("Time for you to sign up!") |
    else: |
        print("Enter your username and password") |
        break |
print("3)Forgot Password") |
print("1)Sign Up") |
    menuInput = input("Pick a menu option") |
        break |
        print("This is not an option") |
        break |
while True: |
    elif menuInput == "2": |
print("2)Sign In") |
    if menuInput == "1": |
print("You are into the system") |
print("Pick an option:") |
        print("An email has been sent to you allow you to reset your password") |
    elif menuInput == "3": |
        print("Time for you to sign up!") |
1 | print("Pick an option:") |
2 | print("1)Sign Up") |
3 | print("2)Sign In") |
4 | print("3)Forgot Password") |
5 | |
6 | while True: |
7 |     menuInput = input("Pick a menu option") |
8 |     if menuInput == "1": |
9 |         print("Time for you to sign up!") |
10 |         break |
11 |     elif menuInput == "2": |
12 |         print("Enter your username and password") |
13 |         break |
14 |     elif menuInput == "3": |
15 |         print("An email has been sent to you allow you to reset your password") |
16 |         break |
17 |     else: |
18 |         print("This is not an option") |
19 | print("You are into the system") |
i = input() |
break |
while True: |
i = int(i) |
if i.isdigit() == True: |
if i > 30: |
print("Invalid!") |
print("Enter a number greater than 30") |
    i = input() |
            break |
while True: |
        i = int(i) |
    if i.isdigit() == True: |
        if i > 30: |
    print("Invalid!") |
    print("Enter a number greater than 30") |
1 | while True: |
2 |     print("Enter a number greater than 30") |
3 |     i = input() |
4 |     if i.isdigit() == True: |
5 |         i = int(i) |
6 |         if i > 30: |
7 |             break |
8 |     print("Invalid!") |
print("Enter a number, enter -1 to stop") |
total = total + i |
if i == -1: |
print(total) |
break |
else: |
total = 0 |
i = int(i) |
while True: |
i = input() |
    print("Enter a number, enter -1 to stop") |
        total = total + i |
    if i == -1: |
print(total) |
        break |
    else: |
total = 0 |
    i = int(i) |
while True: |
    i = input() |
1 | total = 0 |
2 | while True: |
3 |     print("Enter a number, enter -1 to stop") |
4 |     i = input() |
5 |     i = int(i) |
6 |     if i == -1: |
7 |         break |
8 |     else: |
9 |         total = total + i |
10 | print(total) |
print("Invalid operator") |
total = total * int(num) |
if i[0] == "+": |
num = num.strip() |
total = total - int(num) |
total = total / int(num) |
print("Output: " + str(total)) |
total = 0 |
while True: |
print("Output: 0") |
i = input() |
total = total + int(num) |
elif i[0] == "/": |
elif i[0] == "*": |
elif i[0] == "-": |
num = i[1:] |
else: |
        print("Invalid operator") |
        total = total * int(num) |
    if i[0] == "+": |
    num = num.strip() |
        total = total - int(num) |
        total = total / int(num) |
    print("Output: " + str(total)) |
total = 0 |
while True: |
print("Output: 0") |
    i = input() |
        total = total + int(num) |
    elif i[0] == "/": |
    elif i[0] == "*": |
    elif i[0] == "-": |
    num = i[1:] |
    else: |
1 | total = 0 |
2 | print("Output: 0") |
3 | while True: |
4 |     i = input() |
5 |     num = i[1:] |
6 |     num = num.strip() |
7 |     if i[0] == "+": |
8 |         total = total + int(num) |
9 |     elif i[0] == "*": |
10 |         total = total * int(num) |
11 |     elif i[0] == "-": |
12 |         total = total - int(num) |
13 |     elif i[0] == "/": |
14 |         total = total / int(num) |
15 |     else: |
16 |         print("Invalid operator") |
17 |      |
18 |     print("Output: " + str(total)) |
19 |
operator = "" |
total = total * int(num) |
elif operator == "-": |
i = input() |
num = num + i[x] |
print("Output: " + str(total)) |
if operator == "+": |
for x in range(len(i)): |
elif i[x] != " ": |
elif operator == "/": |
print("Output: 0") |
operator = i[x] |
if operator != "": |
if i[x] == "+" or i[x] == "-" or i[x] == "/" or i[x] == "*": |
num = "" |
total = total / int(num) |
num = "" |
total = total - int(num) |
while True: |
i = i + "+" #Ensure there is a calcuation at the end as well |
total = total + int(num) |
elif operator == "*": |
total = 0 |
    operator = "" |
                    total = total * int(num) |
                elif operator == "-": |
    i = input() |
            num = num + i[x] |
    print("Output: " + str(total)) |
                if operator == "+": |
    for x in range(len(i)): |
        elif i[x] != " ": |
                elif operator == "/": |
print("Output: 0") |
            operator = i[x] |
            if operator != "": |
        if i[x] == "+" or i[x] == "-" or i[x] == "/" or i[x] == "*": |
    num = "" |
                    total = total / int(num) |
            num = "" |
                    total = total - int(num) |
while True: |
    i = i + "+" #Ensure there is a calcuation at the end as well |
                    total = total + int(num) |
                elif operator == "*": |
total = 0 |
1 | total = 0 |
2 | print("Output: 0") |
3 | while True: |
4 |     i = input() |
5 |     i = i + "+" #Ensure there is a calcuation at the end as well |
6 |     operator = "" |
7 |     num = "" |
8 |     for x in range(len(i)): |
9 |         if i[x] == "+" or i[x] == "-" or i[x] == "/" or i[x] == "*": |
10 |             if operator != "": |
11 |                 if operator == "+": |
12 |                     total = total + int(num) |
13 |                 elif operator == "*": |
14 |                     total = total * int(num) |
15 |                 elif operator == "/": |
16 |                     total = total / int(num) |
17 |                 elif operator == "-": |
18 |                     total = total - int(num) |
19 |             operator = i[x] |
20 |             num = "" |
21 |         elif i[x] != " ": |
22 |             num = num + i[x] |
23 |      |
24 |     print("Output: " + str(total)) |